			
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using DDF.Entity;
using System.Runtime.Serialization;
using ARR.Entities.Gateways;
		
namespace ARR.Entities
{
	[DataContract]
	[Serializable]	
	public partial class CurrencyExchangeRate : EntityBase
	{
		[DataMember]
		private CurrencyExchangeRateRow row;
		
		public CurrencyExchangeRate(CurrencyExchangeRateRow row)
		{
			this.row = row;
		}
		
		public CurrencyExchangeRate()
		{
			this.row = new CurrencyExchangeRateRow();
		}
		
		[DataMember]
		public int Id
		{
			get { return row.Id; }
			set { row.Id = value; }
		}

		[DataMember]
		public int CountryId
		{
			get { return row.CountryId; }
			set { row.CountryId = value; }
		}

		[DataMember]
		public DateTime Date
		{
			get { return row.Date; }
			set { row.Date = value; }
		}

		[DataMember]
		public decimal Rate
		{
			get { return row.Rate; }
			set { row.Rate = value; }
		}

		[DataMember]
		public int SourceCurrencyId
		{
			get { return row.SourceCurrencyId; }
			set { row.SourceCurrencyId = value; }
		}

		[DataMember]
		public int TargetCurrencyId
		{
			get { return row.TargetCurrencyId; }
			set { row.TargetCurrencyId = value; }
		}

		[DataMember]
		public decimal? ForexRate
		{
			get { return row.ForexRate; }
			set { row.ForexRate = value; }
		}

		
		public CurrencyExchangeRateRow GetRow()
        {
            return row;
        }
		
	} 
} 
